---
hide_table_of_contents: true
---

# SQL Agent Toolkit

This example shows how to load and use an agent with a SQL toolkit.

## Setup

You'll need to first install `typeorm`:

```bash npm2yarn
npm install typeorm
```

## Usage

import CodeBlock from "@theme/CodeBlock";
import Example from "@examples/agents/sql.ts";

import IntegrationInstallTooltip from "@mdx_components/integration_install_tooltip.mdx";

<IntegrationInstallTooltip></IntegrationInstallTooltip>

```bash npm2yarn
npm install @langchain/openai
```

<CodeBlock language="typescript">{Example}</CodeBlock>
